package com.zzz.product.controller;

/*
 * @author zzr
 * @date: 2025/10/22  10:46
 * @description:
 */

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.net.InetAddress;

@RequestMapping("/config")
@RestController
@RefreshScope
public class NacosController {

    @Value("${nacos.test.num}")
    private Integer nacosNum;

    @RequestMapping("/get")
    public Integer get() {
        return nacosNum;
    }
}
